package com.mall.shop.mapper;

import com.mall.shop.entity.ServicesEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
@Repository
public interface ServicesEntityMapper {

    @Select({"SELECT id,area,merchant_service, average_price FROM services WHERE parent_id = #{parent_id,jdbcType=INTEGER}"})
    List<ServicesEntity> selectServicesPrimaryKey(Integer parent_id);
}
